package com.cqc.jdk8.Jutil.function;

import org.junit.Test;

import java.util.function.BiFunction;

/**
 * @author cui
 * @date 2024/6/30 17:31
 * @description
 **/
public class BiFunctionTest {

    @Test
    public void f() {
        BiFunction<Double,Double,Double> function = (x, y)->x+y;
        Double apply = function.apply(1.0, 2.1);
        System.out.println(apply);
    }
    @Test
    public void f2() {
        BiFunction<Double, Double, String> bf1 = new BiFunction<Double, Double, String>() {

            @Override
            public String apply(Double aDouble, Double aDouble2) {
                return "1";
            }
        };
    }

}
